package com.qf.java2201.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @date 2022/4/27
 * @desc
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class StoreExcelDto {

    //编号
    @ExcelProperty("收藏编号")
    private Integer collect_id;

    @ExcelProperty(value = "用户编号")
    private Integer users_id;

    @ExcelProperty(value = "商品名称")
    private String col_goods;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat("yyyy-MM-dd")
    @ExcelProperty(value = "收藏时间")
    private Date collect_time;

    @ExcelProperty(value = "商品图片")
    private String col_goodto;

}
